<?php

//In this view a user can compose a simple message to another user.
//Still needs: form validation, upload of photo



echo heading("Compose a Message!", 3);
echo form_open('messages/send_message');

echo form_label('To', 'to_id');
echo nbs();
unset($usernames[$this->session->userdata('id')]);
echo form_dropdown('to_id',$usernames);

echo br(2);

echo form_label('Subject:', 'subject');
$input = array('name' => 'subject', 'id' => 'subject', 'size'=> 40);
echo form_input($input);


echo form_label('Message:', 'message');
echo br();
$input = array('name' => 'message', 'id' => 'message', 'rows'=> 10, 'cols' => 40);
echo form_textarea($input);

echo br(2);
echo form_submit('send','send');

echo form_close();

?>